﻿using Business.DBModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Business
{
    public class UserService
    {
        public User Login(string logingName,string password)
        {
            WebApiDBEntities dBEntities = new WebApiDBEntities();
            var user= dBEntities.User.FirstOrDefault(f=>f.loginName==logingName&&f.loginPwd==password);
            return user;
        }
    }
}
